package com.shqcjd.preinstallglass.model.eventbus;

import android.app.Activity;

import com.shqcjd.preinstallglass.util.DateUtil;
import com.shqcjd.preinstallglass.util.PrefUtils;

import java.io.Serializable;

/**
 * Created by sy on 2019/4/16.
 */

public class CreateVideotape implements Serializable {
    /**
     * user_id	发起人id
     expert_id	专家id
     equipment_id	巡检设备id
     flights_task_id 巡检任务id
     room_id 房间id
     */
    public int userId;
    public String equipment_id;
    public String flights_task_id;
    public String roomId;

    public CreateVideotape(Activity activity,String roomId) {
        this(activity,"","");
        this.roomId = roomId;
    }

    public CreateVideotape(Activity activity, String equipment_id, String flights_task_id) {
        this.userId = PrefUtils.getInt(activity, PrefUtils.USER_ID, -1);
        this.equipment_id = equipment_id;
        this.flights_task_id = flights_task_id;
        this.roomId = "videotape"+DateUtil.getCurTimeLong();
//        this.room_id = "videotape";
    }

}
